package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.BonusPoint;
import cn.wolfcode.trip.base.domain.Sign;
import cn.wolfcode.trip.base.mapper.BonusPointMapper;
import cn.wolfcode.trip.base.mapper.SignMapper;
import cn.wolfcode.trip.base.service.IBonusPointService;
import cn.wolfcode.trip.base.service.ISignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;

@Service
public class BonusPointServiceImpl implements IBonusPointService{

    @Autowired
    private BonusPointMapper bonusPointMapper;


    @Override
    public BonusPoint getPointByUserId(Long id) {
        return bonusPointMapper.getPointByUserId(id);
    }

    @Override
    public void updateBonusPoint(BonusPoint point) {
        bonusPointMapper.updatePointByUserId(point);
    }
}
